package vista;
import java.awt.BorderLayout;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;

import javax.swing.WindowConstants;
import javax.swing.table.AbstractTableModel;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class tablaposicionesV extends javax.swing.JFrame {
	private JPanel jpanelposiciones;
	private JTable tablaposiciones;
	private JLabel lbltitulo;
	private JScrollPane jScrollPaneposiciones;

	
	
	public tablaposicionesV() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			this.setIconImage(new ImageIcon(getClass().getClassLoader().getResource("imagen/Trophy_Gold_48.png")).getImage());
			this.setTitle("Tabla de Posiciones");
			{
				jpanelposiciones = new JPanel();
				getContentPane().add(jpanelposiciones, BorderLayout.CENTER);
				jpanelposiciones.setLayout(null);
				jpanelposiciones.setPreferredSize(new java.awt.Dimension(395, 294));
				jpanelposiciones.setBackground(new java.awt.Color(255,255,255));
				{
					jScrollPaneposiciones = new JScrollPane();
					jpanelposiciones.add(jScrollPaneposiciones);
					jScrollPaneposiciones.setBounds(12, 62, 439, 139);
					jScrollPaneposiciones.setBackground(new java.awt.Color(244,244,244));
					{
						
						tablaposiciones = new JTable();
						jScrollPaneposiciones.setViewportView(tablaposiciones);
						tablaposiciones.setBackground(new java.awt.Color(242,242,242));

					}
				}
				{
					lbltitulo = new JLabel();
					jpanelposiciones.add(lbltitulo);
					lbltitulo.setText("Tabla de Posiciones");
					lbltitulo.setBounds(116, 18, 236, 24);
					lbltitulo.setFont(new java.awt.Font("Agency FB",0,28));
				}
			}
			pack();
			this.setSize(479, 361);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}
	public void setResultados(AbstractTableModel abstractTableModel) {
		tablaposiciones.setModel(abstractTableModel);
	}
}
